package cn.actoncode.boot.framework.zhipu.config;

import cn.actoncode.boot.framework.zhipu.core.client.ChatGLMApiClient;
import org.springframework.boot.autoconfigure.AutoConfiguration;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Bean;

@AutoConfiguration(after = ZhipuProperties.class)
@EnableConfigurationProperties(ZhipuProperties.class)
public class ActoncodeZhipuConfiguration {

    @Bean
    public ChatGLMApiClient chatGLMApiClient(ZhipuProperties zhipuProperties){
        return new ChatGLMApiClient(zhipuProperties);
    }

}
